<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="../css/mui.min.css">
		<script src="../js/mui.min.js"></script>
		<script src="../js/app.js"></script>
		<style>
			html,body {
				background-color: #efeff4;
			}
		</style>
		<script>
			mui.init();
		</script>
	</head>

	<body>

<style>
	.mui-content-padded {
		padding: 10px;
	}
	.mui-content-padded a {
		margin: 3px;
		width: 50px;
		height: 50px;
		display: inline-block;
		text-align: center;
		background-color: #fff;
		border: 1px solid #ddd;
		border-radius: 25px;
		float: left;
	}
	.mui-content-padded a .mui-icon {
		margin-top: 12px;
	}
	.mui-spinner {
		margin-top: 12px
	}
	.active .mui-spinner-indicator {
		background: #007AFF;
	}
	.mui-content a{
		color: #8F8F94;
	}
	.mui-content a.active{
		color: #007aff;
	}
	
</style>
<header class="mui-bar mui-bar-nav">
	<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	<h1 class="mui-title">Icons</h1>
</header>
<div class="mui-content">
	<div class="mui-content-padded">
		<p>点击图标查看高亮样式</p>
		<a id="icon-icon-contact"><span class="mui-icon mui-icon-contact"></span></a>
		<a id="icon-person"><span class="mui-icon mui-icon-person"></span></a>
		<a id="icon-personadd"><span class="mui-icon mui-icon-personadd"></span></a>
		<a id="icon-phone"><span class="mui-icon mui-icon-phone"></span></a>
		<a id="icon-email"><span class="mui-icon mui-icon-email"></span></a>
		<a id="icon-chatbubble"><span class="mui-icon mui-icon-chatbubble"></span></a>
		<a id="icon-chatboxes"><span class="mui-icon mui-icon-chatboxes"></span></a>
		<a><span class="mui-icon mui-icon-weibo"></span></a>
		<a><span class="mui-icon mui-icon-weixin"></span></a>
		<a><span class="mui-icon mui-icon-pengyouquan"></span></a>
		<a><span class="mui-icon mui-icon-chat"></span></a>
		
		
		<a><span class="mui-icon mui-icon-videocam"></span></a>
		<a><span class="mui-icon mui-icon-camera"></span></a>
		<a><span class="mui-icon mui-icon-image"></span></a>
		<a id="icon-mic"><span class="mui-icon mui-icon-mic"></span></a>
		<a><span class="mui-icon mui-icon-micoff"></span></a>
		<a id="icon-location"><span class="mui-icon mui-icon-location"></span></a>
		<a><span class="mui-icon mui-icon-map"></span></a>
		<!--<a><span class="mui-icon mui-icon-volumehigh"></span></a>
		<a><span class="mui-icon mui-icon-volumelow"></span></a>-->
		
		
		
		<a><span class="mui-icon mui-icon-compose"></span></a>
		<a><span class="mui-icon mui-icon-trash"></span></a>
		<a><span class="mui-icon mui-icon-upload"></span></a>
		<a><span class="mui-icon mui-icon-download"></span></a>
		<a id="icon-close"><span class="mui-icon mui-icon-close"></span></a>
		<a><span class="mui-icon mui-icon-closeempty"></span></a>
		<a><span class="mui-icon mui-icon-redo"></span></a>
		<a><span class="mui-icon mui-icon-undo"></span></a>
		<a id="icon-refresh"><span class="mui-icon mui-icon-refresh"></span></a>
		<a><span class="mui-icon mui-icon-refreshempty"></span></a>
		<a><span class="mui-icon mui-icon-reload"></span></a>
		<a><span class="mui-icon mui-icon-loop"></span></a>
		<!--<a><span class="mui-icon mui-icon-loopstrong"></span></a>-->
		<a>
			<div class="mui-spinner">
				<div class="mui-spinner-indicator mui-spinner-indicator1"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator2"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator3"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator4"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator5"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator6"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator7"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator8"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator9"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator10"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator11"></div>
				<div class="mui-spinner-indicator mui-spinner-indicator12"></div>
			</div>
		</a>
		<a><span class="mui-icon mui-icon-spinner mui-spin"></span></a>
		<a><span class="mui-icon mui-icon-spinner-cycle mui-spin"></span></a>
		<a id="icon-star"><span class="mui-icon mui-icon-star"></span></a>
		<a><span class="mui-icon mui-icon-starhalf"></span></a>
		<a id="icon-plus"><span class="mui-icon mui-icon-plus"></span></a>
		<a><span class="mui-icon mui-icon-plusempty"></span></a>		
		<a id="icon-minus"><span class="mui-icon mui-icon-minus"></span></a>
		<a><span class="mui-icon mui-icon-checkmarkempty"></span></a>
		<a><span class="mui-icon mui-icon-search"></span></a>
		<!--<a><span class="mui-icon mui-icon-searchstrong"></span></a>-->
		<!--<a><span class="mui-icon mui-icon-share"></span></a>-->

		<a id="icon-home"><span class="mui-icon mui-icon-home"></span></a>
		<a><span class="mui-icon mui-icon-navigate"></span></a>
		<a id="icon-gear"><span class="mui-icon mui-icon-gear"></span></a>
		<a><span class="mui-icon mui-icon-settings"></span></a>
		<!--<a><span class="mui-icon mui-icon-settingsstrong"></span></a>-->
		<a><span class="mui-icon mui-icon-list"></span></a>
		<a><span class="mui-icon mui-icon-bars"></span></a>
		<a ><span class="mui-icon mui-icon-paperplane"></span></a>
		<a id="icon-info"><span class="mui-icon mui-icon-info"></span></a>
		<a id="icon-help"><span class="mui-icon mui-icon-help"></span></a>
		<a><span class="mui-icon mui-icon-locked"></span></a>
		<a id="icon-more"><span class="mui-icon mui-icon-more"></span></a>
		<!--<a><span class="mui-icon mui-icon-more-vertical"></span></a>-->
		<a><span class="mui-icon mui-icon-flag"></span></a>
		<a><span class="mui-icon mui-icon-paperclip"></span></a>
		
		
		
		<a><span class="mui-icon mui-icon-back"></span></a>
		<a><span class="mui-icon mui-icon-forward"></span></a>
		
		<a><span class="mui-icon mui-icon-arrowup"></span></a>
		<a><span class="mui-icon mui-icon-arrowdown"></span></a>
		<a><span class="mui-icon mui-icon-arrowleft"></span></a>
		<a><span class="mui-icon mui-icon-arrowright"></span></a>
		
		<a><span class="mui-icon mui-icon-arrowthinup"></span></a>
		<a><span class="mui-icon mui-icon-arrowthindown"></span></a>
		<a><span class="mui-icon mui-icon-arrowthinleft"></span></a>
		<a><span class="mui-icon mui-icon-arrowthinright"></span></a>
		
		<a><span class="mui-icon mui-icon-pulldown"></span></a>
		
	</div>
</div>
<script type="text/javascript" charset="utf-8">
	var active = null,lastid,span;
	mui(".mui-content").on("tap","a",function(){
		var id = this.getAttribute("id");
		if(!active){
			this.classList.add("active");
			if(id){
				span = this.querySelector("span");
				span.classList.remove("mui-"+id);
				span.classList.add("mui-"+id+"-filled");
			}
			active = this;
		}else{
			active.classList.remove("active");
			if(lastid){
				span.classList.remove("mui-"+lastid+"-filled");
				span.classList.add("mui-"+lastid);
			}

			this.classList.add("active");
			if(id){
				span = this.querySelector("span");
				span.classList.remove("mui-"+id);
				span.classList.add("mui-"+id+"-filled");
			}
		
			active = this;
		}
		lastid = id;
	});
</script>

</body>
</html>